<?php						
						
						include 'db/db_Connect.php';                            
							
							$result = mysql_query("SELECT * from User WHERE NOT (user_type = 2)");
							
							while($row = mysql_fetch_array($result)){
			        
			        // Converts numeric status into Pending or Active Status
						$user_status = ($row['active_status'] == 0) ? "Pending" : "Active";	
						$label_type = ($row['active_status'] == 0) ? "warning" : "success";
						
						// Assigs the text value to the numeric 0,1,2 user type from DB
						if($row['user_type'] == 0){
								$user_type = "Administrator";
						} else if($row['user_type'] == 1){
								$user_type = "Volunteer";
						} else {
								$user_type = "Adoptive Family";							
						}	
								        
			    //Display the results in different cells
			        echo    "<tr id=\"".$row['user_id']."\"><td>" 
			                . $row['first_name']
			                . "</td><td class=\"center\">" 			                
			                . $row['last_name']                
			                . "</td><td class=\"center\">" 
			                . $row['created']
			                . "</td><td class=\"center\">" 
			                . $user_type
			                . "</td><td class=\"status\">"            
			                . $user_status
			                . "</td><td>" 
 										. "<a class=\"btn btn-warning table-action-EditUser\" >"
										. "<i class=\"icon-edit icon-white\"></i>"  
											."Edit"                                            
								  . "</a>"
							/*	  . " "
								  . "<a class=\"btn btn-danger table-action-deletelink\" id=\"btnDeleteRow\" href=\"#\">"
										. "<i class=\"icon-trash icon-white\"></i>" 
											. "Delete"
								 . "</a></center>" */                  
			                . "</td></tr>";
						}

						include 'db/db_Close.php';
						
?>						
